﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>员工搜索</title>
    <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" />
    <style type="text/css">
        body {
            padding-top: 50px;
        }

        .pagination {
            margin: 0;
            padding: 0;
        }
    </style>
</head>
<body>
    <nav class="navbar navbar-inverse navbar-fixed-top">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#nav">
                <span class="sr-only">Toggle</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">后台管理系统</a>
        </div>
        <div class="collapse navbar-collapse" id="nav">
            <ul class="nav navbar-nav">
                <li><a href="#">部门管理</a></li>
                <li class="active"><a href="#">员工管理</a></li>
                <li><a href="#">文档管理</a></li>
                <li><a href="#">会议管理</a></li>
            </ul>
        </div>
    </nav>

    <div class="container">
        <div class="page-header">
            <h3><strong>员工管理</strong></h3>
        </div>
    </div>

    <!-- 搜索表单开始 -->
    <div class="container">
        <form>
            <div class="form-inline">
                <div class="form-group">
                    <input type="text" placeholder="姓名包含" class="form-control" />
                </div>
                <div class="form-group">
                    <select class="form-control">
                        <option value="">不限性别</option>
                        <option value="1">男</option>
                        <option value="0">女</option>
                    </select>
                </div>
                <div class="form-group">
                    <input type="date" placeholder="出生日期起始" class="form-control" />
                </div>
                <div class="form-group">
                    <input type="date" placeholder="出生日期终止" class="form-control" />
                </div>
                <div class="form-group">
                    <select class="form-control">
                        <option value="">不限部门</option>
                        <option value="1">技术部</option>
                        <option value="2">销售部</option>
                        <option value="3">市场部</option>
                        <option value="4">行政部</option>
                    </select>
                </div>
                <div class="form-group">
                    <button type="submit" class="btn btn-primary">查询</button>
                </div>
            </div>
        </form>
    </div>
    <!-- 搜索表单结束 -->

    <div class="container">
        <table class="table table-striped table-bordered">
            <caption>
                <h4><strong>查询结果</strong></h4>
                <ul class="pagination pagination-sm" style="float:left;">
                    <li title="第一页"><a href="#">&laquo;</a></li>
                    <li title="上一页"><a href="#">&lsaquo;</a></li>
                    <li title="当前页" class="active"><a href="#">3</a></li>
                    <li title="下一页"><a href="#">&rsaquo;</a></li>
                    <li title="最末页"><a href="#">&raquo;</a></li>
                    <li>
                        <a href="">共<strong>98</strong>条记录，<strong>10</strong>页</a>
                    </li>
                </ul>
                <div style="float:right;padding:5px">
                    <a href="18addemployee.html" class="btn btn-primary btn-sm">添加员工</a>
                </div>
            </caption>
            <thead>
                <tr>
                    <th>编号</th>
                    <th>姓名</th>
                    <th>性别</th>
                    <th>出生日期</th>
                    <th>所属部门</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>10001</td>
                    <td>Jerry</td>
                    <td>男</td>
                    <td>1979-01-01</td>
                    <td>技术部</td>
                    <td>
                        <a href="19editemployee.html" class="btn btn-primary btn-sm">编辑</a>
                        <a href="#" class="btn btn-primary btn-sm" onclick="deleteConfirm();">删除</a>
                    </td>
                </tr>
                <tr>
                    <td>10002</td>
                    <td>Jam</td>
                    <td>女</td>
                    <td>1979-01-01</td>
                    <td>销售部</td>
                    <td>
                        <a href="19editemployee.html" class="btn btn-primary btn-sm">编辑</a>
                        <a href="#" class="btn btn-primary btn-sm" onclick="deleteConfirm();">删除</a>
                    </td>
                </tr>
                <tr>
                    <td>10003</td>
                    <td>David</td>
                    <td>男</td>
                    <td>1980-01-01</td>
                    <td>技术部</td>
                    <td>
                        <a href="19editemployee.html" class="btn btn-primary btn-sm">编辑</a>
                        <a href="#" class="btn btn-primary btn-sm" onclick="deleteConfirm();">删除</a>
                    </td>
                </tr>
                <tr>
                    <td>10004</td>
                    <td>Nancy</td>
                    <td>男</td>
                    <td>1983-01-01</td>
                    <td>技术部</td>
                    <td>
                        <a href="19editemployee.html" class="btn btn-primary btn-sm">编辑</a>
                        <a href="#" class="btn btn-primary btn-sm" onclick="deleteConfirm();">删除</a>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>

    <script src="scripts/jquery-1.11.0.min.js"></script>
    <script src="bootstrap/js/bootstrap.min.js"></script>
    <script src="scripts/bootbox.min.js"></script>
    <script type="text/javascript">
        function deleteConfirm() {
            bootbox.confirm("确实要删除该员工吗？", function (choice) {
                if (choice) {
                    // 使用AJAX向服务器发送删除命令
                    bootbox.alert("信息已经删除！");
                }
            });
        }
    </script>
</body>
</html>
